<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<input/>
		<input type="button" value="单击..." />
		
	</body>
	<script type="text/javascript" src="../../js/jquery-1.7.2.js"></script>
	<script>
		$(function(){
			//1 通过input标签得到 button  
			var inputs = $('input');
			console.log(inputs.length);
			
			//从数组中拿到的东西是js对象  
			var b =inputs[1];
			
			//重点： js对象 转化成jQuery对象
			var $b= $(b);
			console.log($b.val());
			
			//2 给button绑定1个事件
			
			$b.click(function(){
				//console.log(inputs[0].value);
				console.log($(inputs[0]).val());
			});
		});
	</script>
</html>
